package com.guohao.http;

import java.lang.reflect.Method;

public class MethodInfo {

  private final String url;
  private final RequestMethod requestMethod;
  private final Method method;
  private final Object bean;

  public MethodInfo(String url, RequestMethod requestMethod, Method method,
      Object bean) {
    this.url = url;
    this.requestMethod = requestMethod;
    this.method = method;
    this.bean = bean;
  }

  public RequestMethod getRequestMethod() {
    return requestMethod;
  }

  public Method getMethod() {
    return method;
  }

  public String getUrl() {
    return url;
  }

  public Object getBean() {
    return bean;
  }
}